/*
 * for back list
 */

function doNew(){
	document.forms[0].action="new";
	document.forms[0].submit();
}

function doDelete(){
	var checkboxs=document.getElementsByName("_selects");
	var flag=false;
	for(var i=0;i<checkboxs.length;i++){
		if(checkboxs[i].checked == true){
			flag=true;
		}
	}
	if(flag){
		document.forms[0].action="delete";
		document.forms[0].submit();
	}else{
		alert("请选择记录！");
	}
}

